package lng.site.tatoo.model;

import java.io.Serializable;
import javax.persistence.*;

/**
 * The primary key class for the tatoo_user_role database table.
 * 
 */
@Embeddable
public class TatooUserRolePK implements Serializable {
	//default serial version id, required for serializable classes.
	private static final long serialVersionUID = 1L;

	private int TATOO_USER_id;

	private int TATOO_ROLE_id;

	public TatooUserRolePK() {
	}
	public int getTATOO_USER_id() {
		return this.TATOO_USER_id;
	}
	public void setTATOO_USER_id(int TATOO_USER_id) {
		this.TATOO_USER_id = TATOO_USER_id;
	}
	public int getTATOO_ROLE_id() {
		return this.TATOO_ROLE_id;
	}
	public void setTATOO_ROLE_id(int TATOO_ROLE_id) {
		this.TATOO_ROLE_id = TATOO_ROLE_id;
	}

	public boolean equals(Object other) {
		if (this == other) {
			return true;
		}
		if (!(other instanceof TatooUserRolePK)) {
			return false;
		}
		TatooUserRolePK castOther = (TatooUserRolePK)other;
		return 
			(this.TATOO_USER_id == castOther.TATOO_USER_id)
			&& (this.TATOO_ROLE_id == castOther.TATOO_ROLE_id);
	}

	public int hashCode() {
		final int prime = 31;
		int hash = 17;
		hash = hash * prime + this.TATOO_USER_id;
		hash = hash * prime + this.TATOO_ROLE_id;
		
		return hash;
	}
}